package com.lz.ccjdemo.http.data;

/**
 * 接口返回基础类
 * @param <T>
 */
public class BaseResultData<T> {
    /**
     * 状态码
     */
    private int code;
    /**
     * 状态描述
     */
    private String desc;

    /**
     * 结果数据
     */
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return desc;
    }

    public void setMessage(String message) {
        this.desc = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseResultData{" +
                "statusCode=" + code +
                ", message='" + desc + '\'' +
                ", result=" + data +
                '}';
    }
}

